home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simple Backup
/
Simple Backup by STOMP.iso
/
SBU
/
FRA
/
data1.cab
/
dr_sumo-drrstfrant5-product-nt-a
/
dr2000.cmd
next >
Wrap
OS/2 REXX Batch file
|
2001-07-25
|
3KB
|
113 lines
@ECHO Off
REM ******************************************************************
REM *
REM * Windows2000 Disaster Recovery Launch Process
REM *
REM * This batch file is launched via a run once key in the registry.
REM * Its purpose is to properly copy/install/launch our DR restore app.
REM *
REM ******************************************************************
cls
ECHO Bienvenue dans la récupération après sinistre Windows2000.
ECHO * * * * * * * * * * * * * * * * * * * * *
:BEGIN
if "%1" == "" (
goto :USAGE
) else (
goto :STARTCOPY
)
:USAGE
ECHO Usage: %0 TARGET Where TARGET is the installation path.
PAUSE
goto :End
:ASKDISK5
ECHO Insérez votre disquette no %2 de l'installation de Windows dans le lecteur A:.
PAUSE
:STARTCOPY
IF NOT EXIST A:\FLOP105 GOTO ASKDISK5
IF NOT EXIST %1\System32\DR_TEMP\dr32.exe GOTO NO_DELETE_REQUIRED
del %1\System32\DR_TEMP\*.* /q
del %1\System32\DR_TEMP\system\*.* /q
:NO_DELETE_REQUIRED
ECHO Copie des fichiers de récupération après sinistre. Veuillez patienter...
xcopy A:\*.* %1\System32\DR_TEMP\system /e /h /i
expand -r %1\System32\DR_TEMP\system\*.*_
del %1\System32\DR_TEMP\system\*.*_
del %1\System32\DR_TEMP\system\DR2000.cmd
:ASKDISK6
ECHO Insérez votre disquette no %3 de l'installation de Windows dans le lecteur A:.
PAUSE
IF NOT EXIST A:\FLOP106 GOTO ASKDISK6
ECHO Copie des fichiers de récupération après sinistre. Veuillez patienter...
xcopy A:\*.* %1\System32\DR_TEMP\system /e /h /i
expand -r %1\System32\DR_TEMP\system\*.*_
del %1\System32\DR_TEMP\system\*.*_
REM Move the Restore.exe out of the system directory.
copy %1\System32\DR_TEMP\system\dr32.exe %1\System32\DR_TEMP\dr32.exe
REM Move the driver files to where they need to be.
copy %1\System32\DR_TEMP\system\DRVMCDB.SYS %1\System32\drivers\DRVMCDB.SYS
copy %1\System32\DR_TEMP\system\DRVMCDB.INF %1\inf\DRVMCDB.INF
:: Copy the SEQTAPE.INF file if it exists
IF NOT EXIST %1\System32\DR_TEMP\system\seqtape.inf GOTO NO_SEQTAPE
COPY %1\System32\DR_TEMP\system\seqtape.inf %1\inf
:NO_SEQTAPE
REM Now call pnpninst.exe.
cd %1\System32\DR_TEMP\system\
START /wait pnpninst.exe
REM Copy the shuttle driver stuff if it's there.
IF NOT EXIST %1\System32\DR_TEMP\system\epatap2k.sys GOTO NO_SHUTTLE_DRIVER
copy %1\System32\DR_TEMP\system\epatap2k.sys %1\System32\drivers
copy %1\System32\DR_TEMP\system\qic157.sys %1\System32\drivers
copy %1\System32\DR_TEMP\system\epatap2k.inf %1\inf
copy %1\System32\DR_TEMP\system\epatap2k.pnf %1\inf
copy %1\System32\DR_TEMP\system\hptape2k.inf %1\inf
copy %1\System32\DR_TEMP\system\hptape2k.pnf %1\inf
:NO_SHUTTLE_DRIVER
REM Delete the junk stuff...
del %1\System32\DR_TEMP\system\dr32.exe
del %1\System32\DR_TEMP\system\DR2000.cmd
del %1\System32\DR_TEMP\system\FLOP105
del %1\System32\DR_TEMP\system\FLOP106
cd %1\System32\DR_TEMP\system\
REM Install the shuttle driver.
IF EXIST %1\System32\DR_TEMP\system\epatap2k.sys START /wait Shuttle.exe
REM Turn on Auto logon
START /WAIT DRINST.EXE -SETPATH
START Restart.exe
C: